<div id="icon-edit" class="icon32 icon32-posts-post"><br></div>
<h2>标签</h2>
<br class="clear">
<div id="col-container">
    <div id="col-right">
        <div class="col-wrap">
            <table class="wp-list-table widefat fixed tags" cellspacing="0">
                <thead>
                    <tr>
                        <th scope="col" id="name" style="">名称</th>
                        <th scope="col" id="slug"  style="">别名</th>
                        <th class="actions"><?php echo __('Actions'); ?></th>
                    </tr>
                </thead>
                <tfoot>
                    <tr>
                        <th scope="col" id="name" style="">名称</th>
                        <th scope="col" id="slug"  style="">别名</th>
                        <th class="actions"><?php echo __('Actions'); ?></th>
                    </tr>
                </tfoot>
                <tbody id="the-list" class="list:tag">
                <?php foreach($data as $row): ?>
                <?php $row = $row['Tag']?>
                    <tr>
                        <td><?php echo h($row['tag_name']); ?></td>
                        <td><?php echo h($row['tag_alias']); ?></td>
                        <td class="actions">
                            <?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $row['tag_id'])); ?>|
                            <?php echo $this->Form->postLink(__('删除'), array('action' => 'delete', $row['tag_id']), null, __('Are you sure you want to delete the tag # %s?', $row['tag_id'])); ?>
                        </td>
                    </tr>
                <?php endforeach; ?>
			    </tbody>
            </table>
            <br class="clear">
        </div>
    </div><!-- /col-right -->

    <div id="col-left">
        <div class="col-wrap">
            <div class="form-wrap">
                <h3>添加新标签</h3>
                <?php echo $this->Form->create('Tag'); ?>
                    <div class="form-field">
                        <label for="tag-name">名称</label>
                        <?php echo $this->Form->input('tag_name', array('label'=>false, 'div'=>false, 'size'=>40)); ?>
	                    <p>这将是它在站点上显示的名字。</p>
                    </div>
                    <div class="form-field">
                        <label for="tag-slug">别名</label>
                        <?php echo $this->Form->input('tag_alias', array('label'=>false, 'div'=>false, 'size'=>40)); ?>
	                    <p>“别名”是在 URL 中使用的别称，它可以令 URL 更美观。通常使用小写，只能包含字母，数字和连字符（-）。</p>
                    </div>
                    <p class="submit">
                        <input type="submit" id="submit" class="button" value="添加新标签">
                    </p>
                <?php echo $this->Form->end();?>
            </div>
        </div>
    </div><!-- /col-left -->

</div><!-- /col-container -->

